package com.chunuo.order.feign;

import com.chunuo.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-07-28 12:52
 */
@Component
@FeignClient(value = "service-edu")
public interface CourseFrontOpenFeign {

    /**
     * 获取课程信息
     * @param courseId
     * @return
     */
    @GetMapping("/eduservice/coursefront/getCourseInfo/{courseId}")
    public CourseWebVoOrder getCourseInfo(@PathVariable("courseId")String courseId);

}
